import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('WaitingTouchBlock')
export class WaitingTouchBlock extends Component {
    @property(Node)
    root: Node = null;

    protected onEnable(): void {      
        this.root.active = false
  
        this.scheduleOnce(() => {
            this.root.active = true
        }, 0.3)
    }
    protected onDisable(): void {
        this.root.active = false
        this.unscheduleAllCallbacks()
    }
}


